package com.ruoyi.shopping.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.employer.domain.CargoUser;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 商品评价回复管理对象 commodity_reply
 * 
 * @author fxy
 * @date 2024-08-14
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommodityReply extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @Excel(name = "ID")
    private Long id;

    /** 回复内容 */
    @Excel(name = "回复内容")
    private String replyContent;

    /** 回复时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "回复时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date replyTime;

    /** 点赞量 */
    @Excel(name = "点赞量")
    private Long replyLikeNumber;

    /** 商品评价ID */
    @Excel(name = "商品评价ID")
    private Long commodityEvaluateId;
    /** 商品评价内容 */
    @TableField(exist = false)
    private CommodityEvaluate commodityEvaluate;
    @TableField(exist = false)
    private String evaluateContent;

    /** 货主ID */
    @Excel(name = "货主ID")
    private Long cargoUserId;
    @TableField(exist = false)
    private CargoUser cargoUser;
    @TableField(exist = false)
    private String cargoUserName;
    @TableField(exist = false)
    private String avatar;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private Long status;

    /** 逻辑删除（0未删除，1删除） */
    private Long del;
}
